package com.woniu.darryringmall.front.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.darryringmall.front.entity.Goods;
import com.woniu.darryringmall.front.entity.HotGoods;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface GoodsMapper extends BaseMapper<Goods> {
    @Select("select g.id gid,g.image,g.name,gs.price " +
            "from mall_goods g,mall_goods_spec gs " +
            "where g.ishot='y' and g.id=gs.goodsId")
    List<HotGoods> hotlist();

}
